package com.yc.domain;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;

/**
 * @author zwei
 * @create 2024-08-07 15:30
 */
public enum OpType {
    WITHDRAW("withdraw",1),
    DEPOSITE("deposite",2),
    TRANSFER("transfer",3);
    @EnumValue
    private String key;
    private int value;

    OpType(String key, int value) {
        this.key = key;
        this.value = value;
    }


    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

}
